# Maintainer: Barnabas Czeman <trabarni@gmail.com>
pkgname=soc-qcom-msm8974
pkgdesc="Common package for Qualcomm MSM8974 devices"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="BSD-3-Clause"
arch="armv7"
options="!check !archcheck !tracedeps pmb:cross-native"
depends="swclock-offset"
subpackages="
	$pkgname-gpu
"

source="
	adreno-a330-quirks.sh
"

package() {
	mkdir -p $pkgdir
}

gpu() {
	pkgdesc="Various GPU workarounds for Adreno a330"
	install_if="$pkgname=$pkgver-r$pkgrel mesa-dri-gallium"

	install -Dm644 "$srcdir"/adreno-a330-quirks.sh \
		"$subpkgdir"/etc/profile.d/adreno-a330-quirks.sh
}

sha512sums="
92393cb26b07e86bffed052ed2cb59ebd8096fa91173951b27f01efa92b8c9ef9a1bdc7fa054486a7e08048c4046badd3d295f6312bb209326bbf203c1112d1d  adreno-a330-quirks.sh
"
